package Deom1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 周斌
 * Date: 2023-11-16
 * Time: 20:39
 */
public class Cat extends Animal {
    //调用抽象类 父类的构造函数，帮助父类初始化。
    public Cat(String name) {
        super(name);
    }
    @Override
    public void bark() {
        System.out.println(super.name+"喵喵喵叫");
    }

}
